refine for layout