delete unused fields from data_t struct