revice tree.rb