updating the context methods