modify minheap