finish register protocol