give out diff value for nan