making code use enums