optimized enum