this is some registration code