update the context