quick fix... was missing last data value. will revisit later