needed for tree lookup