update the ratio example.