add registration code