modify s1 and s2