removing a ref.