Code works fine, priors fixed