remove old scaling code