refine newline