produce a flat line from the tree