added function to create new vms