registration works properly