small change on a for loop, just to be a little more elegant