finshed add spn spectral analysis to spn equations