change policy for whitespace and add the beginning of the factorize function