added time series analysis