add data to vertical lines of the tree representation