creating flow