change registration logic