add memberships to groups