rename pre-order walk function