added /n at the end of document