register function should take registration param