redefine function initial_partitioning