merging cache