heap example updates