pam_latch modified