removed code dealing with priors and posterios