updates to parametrization code