refine get assignment so it updates when opening.