updating source with multiple-gains example