simplified is_odd