refactor conditional to create_qualifier method