make end time exclusive