remove unused fields to unused_fields