recover the layout