`input[i]` should be something else. see comment above