fixed newline formatting bug