- functions and tree (partially)