refine xcd