`ii.ndim` again here