fixed some small bugs
some changes have been applied to priors