updates one's priors