added more registration code