add contiguous requirement to view functions