better naming and improve code readability for heapify