add start and end times