replace list of fields with a Schema