fixes when 0 data points