added check for domain name