updated functionality of OrderTree