made functions for SH_mcmc programs