added allGroups() function in DataHandler