controlling the density