added amended sma