Tree object  optimalization