Refine some lines