added the finnished mpi version