improving getLangDirection #1