add S2 analysis