use a clearer method of working with groups