v1 with bugs for omitting combinations