factorization replacement