case insensitive while checking type and scope