updated hook file