modified mpi calculation new