refining detail layout