enforced max number of posterior samples