add vars for register function