removed redundant short function isNaN