more code for OpenMPI implementation