changed hook permission