register function

register function