refine conditions