optimizing some priors