modify event codes