add newline on input not output