refining layout