adding error notice when NaN is present