small changes, id bug in mpi paralization