fix missing "
make the hook functional