realize heap