added stuff for registratin