move method to tree