added code to show real and imag
create snippets