add getters and setters for subgroups