only need one line modification when change extract languages

structual changes to concentrate changes in array languages