making sure valid combinations is correct