adding event codes