use ternary operator for create_qualifier method