I'm a little confused what your trying to do. Why don't you just use another variable instead of I? Like x and use x++; or just run the whole thing through a while?