some checks for NaN