restructing files