change the hooks