update the flow chart