implemented gprior from BA that is twice differentiable at  g=0