refactor ell. homogenizer