fixing pin_params