trying to register using self:func()