fix even/odd