removed old index code