corrected endTime