add computation of amplitude spectrum