updating parallel with doMC/multicore
updating code