fixed ternary nsuinteger reference