fixed newline bug