that's how range based for loops should work?