add conditions to event