changing everything to contiguous