update end of trail