separate code for trigger ana