get method for groups