added in two functions to get real and imaginary