add getGroup method