added end_time to events