almost working tree