stabilizing the layout