put domain name process inside the class