changed the flow