added active check for triggers