#sm-2-algorithm