now with posterior sampling