safe guards to find out NaNs