changed hook to be executable