update way of instance method hook