removed appending newline to the end of the document from fast writer