reworked PAM