trigger control - working version