`a` isn't changing each loop, move the declaration outside
Rename for readablity