properly define the set_parameters/type functions