preserving end of the text