model1 moved posterior predictive code