added isnan method