replace separate languages with polyglot