pass the list of fields in an object when saving