rename function to buildLanguage