moving section updated for std::begin and std::end