use same function to define-key