finish work on heaps