reset sample of shared_ptr