add newline to the end