added missing includes of spectrum.h