purple: correctly wrap code that defines a variable