does not compile -- should be `index, n`, not `index < n`