setup tree