moved tree array to global array