updaing the context