stuck a bit with the index handling for the spectra components

Signed-off-by: LK <LK@uni>