made util tree functions private