refactoring on/off/trigger methods