checking for trigger