convert into enumeration