modify the func about key