Changed variable names i = yy & ii = xx