changing perm hook