adding eq/neq corner case for nan values