modify pam_latch