revise enum snippet