change 'fields' to 'properties' in code example