rebuild complex_struct