changed heapify and change method