build all groups