refine solutions