debug tree order