added disp in mpi functions