add register function on horizon