did some work on the flowchart