started adding density normalization calculation