add registration. not finished