add better sign method.

add better sign method.