added the custom event to the aggregated events fucntion