updating scaling