flowchart for the pic stuff