fix n%2