improvements in parametrization code