Adjusted definition of NAN