Change as suggested by Campbell. I'm not sure if this is the way to do for enums, I will check with him later