added NaN test for divide