allowing on to take an array of event types