added more functions to register