if you do this, data will be a view to the initially allocated data and the initial array of len n_events won't be deallocated. I'd rather return a copy to avoid this hidden allocation. wdyt?