added event type find function