rename triggerState to triggerEvent