refine case