add_partition simplification finished