new updates to the splitting_densityGrid script