converted constants into enums.