refine file