Renaming eventTypes member to events