updated Flowchart