before trying to reiterate over tree.  still can't get def syntax right