new function ScaleData lets you scale data loaded through lua