saving group information for every entity