working on timeseries object