added isNaN alert