MADE CHANGES in scala_sampPrior