fix newline printing