this one calcs the density and dev activities all together