fixed mergeN