fixed up the downscaling