optimization of regions