LCS: more factorization