replace Vec::ForEach with Vec::begin/Vec::end (ranged for loop)