changed to a squared length scale