adding functionality to Events