format code
add registration