added check isDate