removed delete calls for shared ptr