remove declaration inside for(), i is already declared