make sure start and end times are different