added Flattened trees