Fixed ctree.  now by value rather than reference...