refine rule
refine code