minor optimization - don't duplicately add groups to list