only look at end date to improve performance