changed ScaleByPercent method from static to private