customization of call to tree function