a little enhancement of getting enum values