add enum and set data type