rewrite makeGroup