fixed trigger efficiency function