update ratio for pin, getPin