modify index files