add formula for PIC skeleton codes