modified to_lang