added start and end time