refine skeleton