refine params