generates time series