remove duplicate function from register #281

remove duplicate function from register #281