refactored qualifier demo