tree struct update