analysis function for sparseness added