property 'state' changed to Enum type