checking NaN moved before