implemented new solution to resize the VM