added isnan() method