simplify n of a kind