corrected Tend to TEnd