document editing a hook