refine for layouts