set sparsity