What is i = 1 doing here?