range-for instead of foreach?
I'll ignore that comment for now, we got foreach at plenty of places for historical reason, I'd rather do a one time porting in a further patch.