turn constants to enums