optimize code for draw flowchart