add better resign method.

add better resign method.