added method to get scalingfactor