switch back to comm.getrank