fix variable name; parent -> enclosing