finished the index file structure