layout refinement