modified the density rule