update context before evaluation