added newline character to the end