refine structure