added a hook
renamed hook
changed return type