Modified the heap apu