corrected normalization of kappa_prior