moving around the timeseries processing code.