change auto on shared_ptr