add code working with 1 data series