main version for registration