added parseNewLine