refine condition