update TreeInputConsole Code