update flow control