extend contiguous_view function