modifying the hook