converting functions to context
context updated