test for no pairs case
fix x%2=0