fixed newline problem