trying to preallocate the Rois class