replace foo.begin() with std::begin(foo)