updated domain functions so they calculate the languages.