when iterating a list use i,j,k; not x