for calculating density for Sam
for calculating density
for Sam