Code refine