register fuction methods -> method