I tried to match the earthquake response spectra to design spectra using spectral matching in frequency domain . After calculating the modification factor( the ratio of spectral acceleration at each frequency), I generated new FFT value. Now when I take the inverse of the FFT (to generate the modified accelerogram)I am still getting complex terms. what is the error ?