Changed order of multiplication to use sparseness.