updated genDeployment