change the event type