refine X