fixed loop in predictive distr