fixed newlines in output