replace deprecated ofPtr with shared_ptr