removed unnecessary enum name when setting the value