enforcing direct sums composed of more than one group