corrected const shared_ptr<T> to shared_ptr<const T>