updated time series script