added cumulative spectral distribution function