change context for entry and exit node