rewrote densities section, broke it up into two sections