logic for triggeredOn & triggeredOff