change tree method