updates to flow