cleaning up the index files