added trees and arrays