stabilized mpi code