use enum for fields.