added the delta function to the spectrum calculation. However it does not appear to do anything.