added functionality to timeseries