clean up lists index code