update scaling factors