forgot to increment the cell index