solve the newline problem