upgrade hash and using the heap to test