removing heap