adding some MPI codes