code reduction PAM-PIMS