nearly working version with pimco time series data