added remove sparsity