can finally pass sma function into DataFrame assignement