update context