implement end time