added a hook