modified the group generator and commented it a bit