change to endtime