codes factorized