copy only when not c-contiguous