refine csv