renamed pivotScript pivotData