add heap
update heap