trying to generify enums