require shrinkfun in createBayes to be a two-argument function