updating for enums