refine rules