regularizes
not defined yet