changed Check_register API.