adapted to time series