removed not used $i variable

removed not used $i variable