finish case for register