autoMerge factorization