add tree rename function