fix time series issues with array building for output