add updateContext() in lambda expressions