modified channelsbygroup func