replace tree with celltree ( still work in progress)