heap updates