update flowchart