parse imaginary numbers before