finalize the heap feature