added linear height scaling