adding the scale along x to main loop