initial import factorization tools

whats the point of using currying for these 2 params