compilable version of groupList

this one actually compiles