generate foundation layout