start time must be less than end