modfied hook.sh again