Enumeration allKeys = tempDict.keyEnumerator();
while (allKeys.hasMoreElements()) {
String key = (String)allKeys.nextElement();
Object value = tempDict.valueForKey(key);
if ((value instanceof String) && (((String)value).equals("true"))) {
newDict.takeValueForKey("YES", key);
} else if ((value instanceof String) && (((String)value).equals("false"))) {
newDict.takeValueForKey("NO", key);
} else {
newDict.takeValueForKey(value, key);
}