inspect enclosing method