added logic if there were no data points