added gprior and ba