refactored
Refactored and removed getEven/getOdd