[files] use var on index variable.