added utilities to pparameter fitting