merge one by one