starting to work new grid partitioning
first version of new grid partitioning