not reading correct number of data points.