Impelemented the textDomain logic