Refining layout