convert is_10/11 into macros instead of functions