added a new method to the event class