revise and test time series handline