defined the event type

this was not compiling because the event type was not defined