(issue #2) division into subgroups