modify register protocol