fixed frequency calculation & restructured PIC
enhanced visual swagability