remove shared_ptr for perf reasons (VS2010)