edited flowchart