adding in group analysis