generating index files