change heap structure