fixing newline bug