updated heap