change these functions to adapt for data richness group (no consequence to the others at all)