collective function of MPI