edit oddEven function