adding patch for new partitioning ways