aded named function

now trying to convert to string and alert if NaN