another hack for numPartitions