moved time series into helper module