handle two NaNs