tweaking time series functions