user proper method for registering hook