updating language detection script