small changes to group analysis