groups is a list