now importing only isnan() from math.