added NaN test for minus