version before tweaking the sma array