added methods to obtain all groups