updating priors