I'm a bit confused. partitions still refer to a single partition right? but possibly multi-dimensional. If so I think the variable should be named partition (without the plural s).