remove shared_ptr from vector