changed the smc function so that it allows different priors for different parameters