renamed sparsity to density