removed unused index code