method capture xs =
      if self#has_var xs then captured <- true