adds even/odd check