group bug

use list instead of set in groups