layout refine