minor factorization