rename variable `method` to `hook_method`