adding a start and end time