changed dependence of S1 and S2 on ds