changed S matrix estimate to accomodate new complex-valued WS object