work on S1 and S2