initial code for parallel metropolis spc