use `index` instead of `i`. (our style guides don't want us using 1-char-long variable names)