added support for event type