Can you rename either this or your `index` variable? It's confusing when they share the same name.