removed the dependency of Heap on VM