shared code for Rhogroup - UMass Amherst