add search and merge