start adding mpi code