fixed newline in output