opt and perm update