add start time and end time