first draft add_prior_stats function