update ratio