Don't repurpose index variables; use a new, appropriately-named variable instead.