merging index files