udpated demo preface for tree mode