Reducing number of partitions