nit: how about a for loop instead?