add source to complex string