check for isNaN too