add code to fire triggers