add missign register function