added resister function
added resister function