changed flowchart