declared i,j