use imaginary instead of imag