try to remove some element  arr correctly