removed extraneous forced recalculation of S(a,b) xs