change all occurrences of fieldName to name