solved the mpi part
solved the mpi part