submap is now an unique_ptr