output diagram for old version of PIC program