Clean up of binDensity phase 2