cleaned up getPicklistValueFromName