cleaned up leftover heap code that was commented out