mpi code added without testing