figuring out combinatorial issue