merging index