changed the end time from start time criteria of events