condensed __ne__ code