def triggers() debug - added a debug function