change the name of data structure from node to tree