resolve combinations problem