moved enum into class where it is used