updating perms