use isGivenKind() instead of getName()