filter out recursive groups