rewrite combinations