it looks like you could still use `each_with_index` here, just without the inner `each` loop.