factorization code
Fixed 643-1 1