use enumerated integer instead of string for internal type comparison