tree . replace