finished implementing new sparsity score