avoiding silly implciit returns when using for loops