modify resolution ratio