update flow chart