changing the hooks