updating context