fixed sparsity 0.8 code