adding start time and end time