first iteration of search
merge