rename func registering