remove unnecessary newline