remove string comparisons from ctor