flatten/flatten_view/ref