update ordering so it updates perms