refactoring: enums