refactoring to use enums