moved to fit_gprior