got wp covariance matrix working