testing the hook