removed unused trackingScaleFactor variable