registration function is ready