restructuring main