fixingup isEvenOdd for testing