adding isNaN alert