completed tree generator