updating flow