update event id, logic