need to get the value of the constant from enum instead of its name.