generated a layout