added function to remove a trigger