add xs as_complex