added plotData function