removing pruned node