updated version of trigger