update context variable