updating code for parallel computing experiment.