added operator, and made use of triggertemplate