record root node in tree