add loop for posterior distribution histograms