pass list of things to tree functions